AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / Desarrollar en Java
  • Overview
  • Generating a Java application with WINDEV
  • Creating a Java project
  • Creating the project
  • Changing the project generation type
  • Characteristics of a Java project
  • RAD available in Java
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Overview

Generating a Java application with WINDEV

WINDEV allows you to generate a Java application without even knowing the Java language. The method for developing the application is identical to the method for developing any other WINDEV application.
When the WINDEV project is compiled, the windows and the WLanguage functions are automatically converted into Java.
Note: It is recommended to create a new WINDEV project to develop a Java application, rather than converting a WINDEV application to Java.
Creating a Java project

Creating the project

A Java project is created like any other WINDEV project.
To create a WINDEV Java project:
  1. Click in the quick access buttons. The window for creating a new element is displayed: click "Project".
  2. The project creation wizard starts.
  3. Choose the type of project generation. Select "Java archive" and continue.
Once the project is created, you can develop in WLanguage as for any other WINDEV project.
Note: In this version, only a limited number of WLanguage functions can be used in a Java project. This number of functions will increase in forthcoming versions. For more details, see Functions available in Java.

Changing the project generation type

To generate a Java archive from an existing WINDEV project, simply create a "Java archive" project configuration directly from the "Project explorer" pane.
For more details, see Project configurations.

Characteristics of a Java project

Once the project has been configured as a Java project, all the tools available in WINDEV are automatically configured for the Java project:
  • The compilation of the project indicates whether your project contains functions or controls that cannot be used in Java.
  • The creation of the archive makes it possible to generate a ".jar" file in the EXE directory of the project.
  • The setup module of the application only handles the files required for deploying the Java application.
Note: It is recommended to create a new WINDEV project to develop a Java application, rather than converting a WINDEV application to Java.

RAD available in Java

On a Java project that handles data files, you have the abomotu to use the Full il Application RAD or the Window RAD (Simple RAD).
To use a RAD pattern other than the Simple RAD, the generated code will have to be adapted to operate in a Java application.
Related Examples:
WD JavaMail Training (WINDEV): WD JavaMail
[ + ] This example is a Java example used to read and send emails.
WD Managing the Java errors Training (WINDEV): WD Managing the Java errors
[ + ] WINDEV enables you to develop Java applications without even knowing Java.
You benefit from the power and from the automated processes of the WINDEV environment.
One of the most useful automated processes is the automatic management of errors.
This example presents the operating mode and the implementation of the mechanism for managing the WINDEV errors.
Some illustrations allow you to understand the simplification performed when implementing this feature.
This project is configured to generate a Java archive.
WD Java Chart Designer Training (WINDEV): WD Java Chart Designer
[ + ] WINDEV enables you to create some Java applications without even knowing Java.
You program with a 5GL (WLanguage) and WINDEV generates the Java code.
The drawing functions of WINDEV are available in Java generation.
This example explains how to create charts with these drawing functions.
Three types of charts are presented in this example:
- the bar chart,
- the scatter chart,
- and the line chart.
WD JAVA Calls Training (WINDEV): WD JAVA Calls
[ + ] WD JAVA Calls is an example containing two configurations of project:
- A "Windows Application" configuration that is used to create the executable of the application
- A "Java Application" configuration that is used to create the Java archive (.JAR) of the application
This example is supplied with a JAR archive named "JavaFunction" external to the application.
It presents the call to the methods of classes of this JAR archive via the WLanguage function named JavaExecuteFunction.
This example also explains how a memory table can be filled (identical in Java mode and in Windows mode)
Versión mínima requerida
  • Versión 9
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 10/03/2025

Señalar un error o enviar una sugerencia | Ayuda local